package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 充电桩信息对象 charging_pile
 * 
 * @author ruoyi
 * @date 2025-06-27
 */
public class ChargingPile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 充电桩主键ID */
    private Integer cpId;

    /** 充电桩名称 */
    @Excel(name = "充电桩名称")
    private String cpName;

    /** 所属充电站ID */
    @Excel(name = "所属充电站ID")
    private Integer cpStationId;

    /** 终端类型 */
    @Excel(name = "终端类型")
    private String cpType;

    /** 功率 */
    @Excel(name = "功率")
    private String cpPower;

    /** 充电枪数量 */
    @Excel(name = "充电枪数量")
    private Integer cpGunCount;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cpCreateTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cpUpdateTime;

    /** 充电桩的版本 */
    @Excel(name = "充电桩的版本")
    private String cpVersion;

    public void setCpId(Integer cpId) 
    {
        this.cpId = cpId;
    }

    public Integer getCpId() 
    {
        return cpId;
    }

    public void setCpName(String cpName) 
    {
        this.cpName = cpName;
    }

    public String getCpName() 
    {
        return cpName;
    }

    public void setCpStationId(Integer cpStationId) 
    {
        this.cpStationId = cpStationId;
    }

    public Integer getCpStationId() 
    {
        return cpStationId;
    }

    public void setCpType(String cpType) 
    {
        this.cpType = cpType;
    }

    public String getCpType() 
    {
        return cpType;
    }

    public void setCpPower(String cpPower) 
    {
        this.cpPower = cpPower;
    }

    public String getCpPower() 
    {
        return cpPower;
    }

    public void setCpGunCount(Integer cpGunCount) 
    {
        this.cpGunCount = cpGunCount;
    }

    public Integer getCpGunCount() 
    {
        return cpGunCount;
    }

    public void setCpCreateTime(Date cpCreateTime) 
    {
        this.cpCreateTime = cpCreateTime;
    }

    public Date getCpCreateTime() 
    {
        return cpCreateTime;
    }

    public void setCpUpdateTime(Date cpUpdateTime) 
    {
        this.cpUpdateTime = cpUpdateTime;
    }

    public Date getCpUpdateTime() 
    {
        return cpUpdateTime;
    }

    public void setCpVersion(String cpVersion) 
    {
        this.cpVersion = cpVersion;
    }

    public String getCpVersion() 
    {
        return cpVersion;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cpId", getCpId())
            .append("cpName", getCpName())
            .append("cpStationId", getCpStationId())
            .append("cpType", getCpType())
            .append("cpPower", getCpPower())
            .append("cpGunCount", getCpGunCount())
            .append("cpCreateTime", getCpCreateTime())
            .append("cpUpdateTime", getCpUpdateTime())
            .append("cpVersion", getCpVersion())
            .toString();
    }
}
